import request from '@/utils/request'

// 水耗（年）列表
export function getWateruseList(params) {
  const { pageNum, pageSize } = params;
  return request({
    url: `/water/consumption/year`,
    method: "get",
    params
  });
}


// 水耗详情
export function getWaterusedetail(params) {
  const { deptId, year } = params;
  return request({
    url: `/water/consumption/tree/${deptId}/${year}`,
    method: "get",
  });
}

// 部门数量
export function getWaterusedeptNum(params) {
  const { deptId } = params;
  return request({
    url: `/water/consumption/num/${deptId}`,
    method: "get",
  });
}

//月信息
export function getDeptUsedWaterMonth(params) {
  return request({
    url: '/statistics/analysis/getDeptUsedWaterMonth',
    method: 'get',
    params
  })
}



//日信息
export function getDeptUsedWaterDay(params) {
  return request({
    url: '/statistics/analysis/getDeptUsedWaterDay',
    method: 'get',
    params
  })
}

